//
//  ResponseManager+Playtour.m
//  一点互助
//
//  Created by 张泊秋 on 16/9/1.
//  Copyright © 2016年 zhangboqiu. All rights reserved.
//

#import "ResponseManager+Playtour.h"
#import "PlaytourModel.h"

@implementation ResponseManager (Playtour)

+ (void)getPlaytourInfoUserId:(NSString *)userId completionHandler:(RequestCompletion)completionHandler {
    
    NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
    parameters[@"uid"] = userId;
    
    [self startGetRequestWithURLString:kPlayrouURL parameters:parameters completionHandler:^(FBResponse *response) {
        if (response.success) {
            NSArray *modelArray = [PlaytourModel modleArrayWithGoodsInfoArray:response.resultValue];
            
            response.resultValue = modelArray;
        }
        
        completionHandler(response);
        
    }];
    
}

@end
